-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filter molecule for templates #339
Conversation
note to self vf2pp from networkx 3 might speed up matching process also proper line by line benchmark is needed |
Not fundamentally, no. I'm also not sure what the goal you're trying to achieve is. |
Currently polyply assumes all residues are unique. That is mostly true but not quite at least at the all-atom level. For example, there might be a hydrogen extra or less depending on if a residue is located in the center or at the terminal. This functionality checks each residue against a collection of unique residues in order to find those that have the same resname but deviate as graphs. It makes generating the templates more robust for complicated AA structures |
Alright. I don't think there's really a faster way then. Unless you are willing to accept approximation, e.g. only check atom names. |
@csbrasnett this PR should fix the issue with the residue names; I think it is about time that we added this functionality |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, mostly related to out-of-date docstrings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny nitpick, looks good otherwise!
This PR sets the stage for some important changes:
To Do
@pckroon do you have any idea how to do the code below in faster?
polyply_1.0/polyply/src/generate_templates.py
Lines 295 to 314 in b97ba71